<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="/css/public.css" media="all" />
</head>
<body class="childrenBody">
<div class="gray-bg">
    <div class="layui-fluid">
        <div class="layui-row layui-col-space10">
           <div class="layui-col-sm6">
               <div class="layui-card">
                   <div class="layui-card-header">CPU</div>
                   <div class="layui-card-body">
                       <table class="layui-table">
                           <thead>
                           <tr>
                               <th width="40%">属性</th>
                               <th>值</th>
                           </tr>
                           </thead>
                           <tbody>
                           <tr>
                               <td>核心数</td>
                               <td>${server.cpu.cpuNum}个</td>
                           </tr>
                           <tr>
                               <td>用户使用率</td>
                               <td >${server.cpu.used + '%'}</td>
                           </tr>
                           <tr>
                               <td>系统使用率</td>
                               <td >${server.cpu.sys + '%'}</td>
                           </tr>
                           <tr>
                               <td>当前空闲率</td>
                               <td >${server.cpu.free + '%'}</td>
                           </tr>
                           </tbody>
                       </table>
                   </div>
               </div>
           </div>
            <div class="layui-col-sm6">
                <div class="layui-card">
                    <div class="layui-card-header">服务器信息</div>
                    <div class="layui-card-body">
                        <table class="layui-table">
                            <tbody>
                            <tr>
                                <td>服务器名称</td>
                                <td >${server.sys.computerName}</td>
                                <td>操作系统</td>
                                <td >${server.sys.osName}</td>
                            </tr>
                            <tr>
                                <td>服务器IP</td>
                                <td>${server.sys.computerIp}</td>
                                <td>系统架构</td>
                                <td>${server.sys.osArch}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row layui-col-space10">
            <div class="layui-col-sm6">
                <div class="layui-card">
                    <div class="layui-card-header">Java虚拟机信息</div>
                    <div class="layui-card-body">
                        <table class="layui-table">
                            <tbody>
                            <tr>
                                <td>Java名称</td>
                                <td >${server.jvm.name}</td>
                                <td>Java版本</td>
                                <td >${server.jvm.version}</td>
                            </tr>
                            <tr>
                                <td>启动时间</td>
                                <td>${server.jvm.startTime}</td>
                                <td>运行时长</td>
                                <td >${server.jvm.runTime}</td>
                            </tr>
                            <tr>
                                <td colspan="1">安装路径</td>
                                <td colspan="3" >${server.jvm.home}</td>
                            </tr>
                            <tr>
                                <td colspan="1">项目路径</td>
                                <td colspan="3" >${server.sys.userDir}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="layui-col-sm6">
                <div class="layui-card">
                    <div class="layui-card-header">磁盘状态</div>
                    <div class="layui-card-body">
                        <table class="layui-table">
                            <thead>
                            <tr>
                                <th>盘符路径</th>
                                <th>文件系统</th>
                                <th>盘符类型</th>
                                <th>总大小</th>
                                <th>可用大小</th>
                                <th>已用大小</th>
                                <th>已用百分比</th>
                            </tr>
                            </thead>
                            <tbody>

                                <#list server.sysFiles as sysFile>
                                    <tr>
                                    <td >${sysFile.dirName}</td>
                                    <td >${sysFile.sysTypeName}</td>
                                    <td >${sysFile.typeName}</td>
                                    <td >${sysFile.total}</td>
                                    <td >${sysFile.free}</td>
                                    <td >${sysFile.used}</td>
                                    <td >${sysFile.usage}%</td>
                                    </tr>
                                </#list>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>